package com.wzcl.app.model.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class MaterialDto extends BaseDto {

    @NotNull(message = "名称不能为空")
    @ApiModelProperty(value = "名称")
    private String name;

    @NotNull(message = "类型不能为空")
    @ApiModelProperty(value = "类型")
    private Integer type;

    @ApiModelProperty(value = "商品描述")
    private String description;

    @ApiModelProperty(value = "状态")
    private Integer state ;

    @ApiModelProperty(value = "是否是商品")
    private Boolean isCommodity;
}
